import { GET, POST } from '@/utils'

enum API {
    GET_HAND_DISINFECT_DATA_API = '/queryDisinfect',
    ADD_HAND_DISINFECT_DATA_API = '/addDisinfect',
    UPDATE_HAND_DISINFECT_DATA_API = '/updateDisinfect',
    DELETE_HAND_DISINFECT_DATA_API = '/deleteDisinfect',
    EXPORT_HAND_DISINFECT_DATA_API = '/downloadDisinfect',

    GET_HAND_DISINFECT_USE_DATA_API = '/queryDisinfectHistory',
    EXPORT_HAND_DISINFECT_USE_DATA_API = '/downloadDisinfectHistory'
}

export const getHandDisinfectDataApi = (data: any) => POST(API.GET_HAND_DISINFECT_DATA_API, data, false)
export const addHandDisinfectDataApi = (data: any) => POST(API.ADD_HAND_DISINFECT_DATA_API, data, false)
export const updateHandDisinfectDataApi = (data: any) => POST(API.UPDATE_HAND_DISINFECT_DATA_API, data, false)
export const delHandDisinfectDataApi = (data: any) => POST(API.DELETE_HAND_DISINFECT_DATA_API, data, true)
export const getHandDisinfectDataUseApi = (data: any) => POST(API.GET_HAND_DISINFECT_USE_DATA_API, data, false)
export const exportHandDisinfectDataApi = (data: any) => POST(API.EXPORT_HAND_DISINFECT_DATA_API, data, false)
export const exportHandDisinfectUseDataApi = (data: any) => POST(API.EXPORT_HAND_DISINFECT_USE_DATA_API, data, false)